<meta name="content-type" content="text/html; charset=UTF-8" />
<!-- #set(PaginatedList<ClassRecord> pl) -->
<!--
		#set(
		pager = pl.pager,
		totalResults = pager.getCountOfTotalResults(),
		totalPages = pager.getCountOfTotalPages() * 1,
		pageSize = pager.pageSize,
		pageNo = pager.pageNo,
		prePageNo = pager.getPrevPageNo(),
		nextPageNo = pager.getNextPageNo()
		)
-->

<!--#if(pl)-->
<div class="panel-heading panel-result-title">
	<h3 class="panel-title">查询结果</h3>
	<div class="btn-group btn-gp-default">
		<button id="btn_add" type="button" class="btn btn-default panel-radius-left">添加</button>
		<button id="btn_edit" type="button" class="btn btn-default panel-radius-center">修改</button>
		<button id="btn_delete" type="button" class="btn btn-default panel-radius-center">删除</button>
		<button id="btn_addProduct" type="button" class="btn btn-default panel-radius-center">添加产品</button>
		<button id="btn_addMember" type="button" class="btn btn-default panel-radius-center">添加会员</button>
		<button id="btn_product_export" type="button" class="btn btn-default panel-radius-right">导出</button>
	</div>
</div>

<table class="table table-bordered table-hover table-condensed tb" style="text-align: center">
	<tr>
		<td class="tb-chose"><input id="chkallIds" type="checkbox" /></td>
		<td>名称</td>
		<td class="tb-common">状态</td>
		<td class="tb-common">负责人</td>
		<td class="tb-common">老师</td>
		<td class="tb-common">助教</td>
		<td>场地</td>
		<td class="tb-common">类型</td>
		<td class="tb-commoner">开始时间</td>
		<td class="tb-commoner">结束时间</td>
	</tr>
	<!--#for(ClassRecord clazz : pl)-->
	<tr>
		<td><input name="chk_name" type="checkbox" value="${clazz.id}" /></td>
		<td><a href="yueyogaAdmin/viewClass.jhtml?classId=${clazz.id}">${clazz.name}</a></td>
		<td>${clazz.state}</td>
		<td>${clazz.officer}</td>
		<td>${clazz.mainTeachers}</td>
		<td>${clazz.assistants}</td>
		<td>${clazz.places}</td>
		<td>${clazz.type}</td>
		<td>${clazz.startTime}</td>
		<td>${clazz.endTime}</td>
	</tr>
<!--#end-->
</table>

<!-- 列表分页 -->
<div class="paging-page">$!{include("paging_page.html")}</div>

<!-- #else -->
<div class="panel-body">没有符合条件的数据</div>
<!-- #end -->

<script type="text/javascript">
	function changePage(value) {
		value = value * 1;
		var totalPages = '${totalPages}';
		if (value > totalPages) {
			value = totalPages;
		} else if (value < 1) {
			value = 1;
		}
		$("#txtPageNumber").val(value);
		goToPage(value);
	}
	
	function goToPage(pageNo) {
		$("#hidPageNo").val(pageNo);
		document.classForm.submit();
	}
</script>